/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package moduleView;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Type Complexity Index</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see moduleView.ModuleViewPackage#getType_Complexity_Index()
 * @model
 * @generated
 */
public enum Type_Complexity_Index implements Enumerator {
	/**
	 * The '<em><b>Very Easy</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #VERY_EASY_VALUE
	 * @generated
	 * @ordered
	 */
	VERY_EASY(1, "Very_Easy", "Very_Easy"),

	/**
	 * The '<em><b>Easy</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #EASY_VALUE
	 * @generated
	 * @ordered
	 */
	EASY(2, "Easy", "Easy"),

	/**
	 * The '<em><b>Medium</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #MEDIUM_VALUE
	 * @generated
	 * @ordered
	 */
	MEDIUM(3, "Medium", "Medium"),

	/**
	 * The '<em><b>Difficult</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DIFFICULT_VALUE
	 * @generated
	 * @ordered
	 */
	DIFFICULT(4, "Difficult", "Difficult"),

	/**
	 * The '<em><b>Very Difficult</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #VERY_DIFFICULT_VALUE
	 * @generated
	 * @ordered
	 */
	VERY_DIFFICULT(5, "Very_Difficult", "Very_Difficult");

	/**
	 * The '<em><b>Very Easy</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Very Easy</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #VERY_EASY
	 * @model name="Very_Easy"
	 * @generated
	 * @ordered
	 */
	public static final int VERY_EASY_VALUE = 1;

	/**
	 * The '<em><b>Easy</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Easy</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #EASY
	 * @model name="Easy"
	 * @generated
	 * @ordered
	 */
	public static final int EASY_VALUE = 2;

	/**
	 * The '<em><b>Medium</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Medium</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #MEDIUM
	 * @model name="Medium"
	 * @generated
	 * @ordered
	 */
	public static final int MEDIUM_VALUE = 3;

	/**
	 * The '<em><b>Difficult</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Difficult</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DIFFICULT
	 * @model name="Difficult"
	 * @generated
	 * @ordered
	 */
	public static final int DIFFICULT_VALUE = 4;

	/**
	 * The '<em><b>Very Difficult</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Very Difficult</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #VERY_DIFFICULT
	 * @model name="Very_Difficult"
	 * @generated
	 * @ordered
	 */
	public static final int VERY_DIFFICULT_VALUE = 5;

	/**
	 * An array of all the '<em><b>Type Complexity Index</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final Type_Complexity_Index[] VALUES_ARRAY =
		new Type_Complexity_Index[] {
			VERY_EASY,
			EASY,
			MEDIUM,
			DIFFICULT,
			VERY_DIFFICULT,
		};

	/**
	 * A public read-only list of all the '<em><b>Type Complexity Index</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<Type_Complexity_Index> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Type Complexity Index</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static Type_Complexity_Index get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			Type_Complexity_Index result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Type Complexity Index</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static Type_Complexity_Index getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			Type_Complexity_Index result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Type Complexity Index</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static Type_Complexity_Index get(int value) {
		switch (value) {
			case VERY_EASY_VALUE: return VERY_EASY;
			case EASY_VALUE: return EASY;
			case MEDIUM_VALUE: return MEDIUM;
			case DIFFICULT_VALUE: return DIFFICULT;
			case VERY_DIFFICULT_VALUE: return VERY_DIFFICULT;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private Type_Complexity_Index(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //Type_Complexity_Index
